/*  1:   */ package org.jetbrains.jps.model.impl;
/*  2:   */ 
/*  3:   */

import org.jetbrains.annotations.NotNull;
import org.jetbrains.jps.model.JpsEventDispatcher;
import org.jetbrains.jps.model.JpsModel;
import org.jetbrains.jps.model.ex.JpsCompositeElementBase;

/*  4:   */
/*  5:   */
/*  6:   */
/*  7:   */ 
/*  8:   */ public abstract class JpsRootElementBase<E extends JpsRootElementBase<E>>
/*  9:   */   extends JpsCompositeElementBase<E>
/* 10:   */ {
/* 11:   */   private final JpsModel a;
/* 12:   */   private final JpsEventDispatcher b;
/* 13:   */   
/* 14:   */   protected JpsRootElementBase(@NotNull JpsModel paramJpsModel, JpsEventDispatcher paramJpsEventDispatcher)
/* 15:   */   {
/* 16:32 */     this.a = paramJpsModel;
/* 17:33 */     this.b = paramJpsEventDispatcher;
/* 18:   */   }
/* 19:   */   
/* 20:   */   protected JpsRootElementBase(JpsCompositeElementBase<E> paramJpsCompositeElementBase, JpsModel paramJpsModel, JpsEventDispatcher paramJpsEventDispatcher)
/* 21:   */   {
/* 22:37 */     super(paramJpsCompositeElementBase);
/* 23:38 */     this.a = paramJpsModel;
/* 24:39 */     this.b = paramJpsEventDispatcher;
/* 25:   */   }
/* 26:   */   
/* 27:   */   protected JpsEventDispatcher getEventDispatcher()
/* 28:   */   {
/* 29:44 */     return this.b;
/* 30:   */   }
/* 31:   */   
/* 32:   */   @NotNull
/* 33:   */   public JpsModel getModel()
/* 34:   */   {
/* 35:50 */     JpsModel tmp4_1 = this.a;
/* 36:50 */     if (tmp4_1 == null) {
/* 37:50 */       throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/jetbrains/jps/model/impl/JpsRootElementBase", "getModel" }));
/* 38:   */     }
/* 39:50 */     return tmp4_1;
/* 40:   */   }
/* 41:   */   
/* 42:   */   @NotNull
/* 43:   */   public E createCopy()
/* 44:   */   {
/* 45:56 */     throw new UnsupportedOperationException("'createCopy' not implemented in " + getClass().getName());
/* 46:   */   }
/* 47:   */ }



/* Location:           E:\idea\

 * Qualified Name:     org.jetbrains.jps.model.impl.JpsRootElementBase

 * JD-Core Version:    0.7.0.1

 */